<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/warehouse/enterstorage_form_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/enterstorage_form/enterstorage_form_editEntity.shtml">
		<input type="hidden" name="enterstorageFormMap.id" value="${enter.id}" />
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">日期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="create_time" readonly
						value="${enter.create_time }"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">机台号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="machine_no" readonly
						value="${enter.machine_no}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">客户</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="cname" readonly
						value="${enter.cname}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">产品名称</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="oname" readonly
						value="${enter.oname}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">模具编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="mold_encode" readonly
						value="${enter.mold_encode}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">物料编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="material_code" readonly
						value="${enter.material_code}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">生产订单数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="number" readonly
						value="${enter.number}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">业务员</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="username" readonly
						value="${enter.username}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">末批生产时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="" readonly
						value="？？？" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">生产结束时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="pfinishtime" readonly
						value="${enter.pfinishtime }"/>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<%-- <div class="form-group">
				<label class="col-sm-3 control-label">标准产能</label>
				<div class="col-sm-9">
					<c:forEach var="p" items="${process }">
						<c:if test="${p.Standard_Capacity!=null }">
							<input type="text" class="form-control checkabh" id="Standard_Capacity" readonly
						value="${p.Standard_Capacity }" />
						</c:if>
					</c:forEach>
					
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div> --%>
			<div class="form-group">
				<label class="col-sm-3 control-label">机台开合数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="" readonly
						value="？？？" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">入库数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="numberOfStorage" readonly
						value="${enter.numberOfStorage }" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">长</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="length" readonly
						value="${enter.length}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">宽</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="weight" readonly
						value="${enter.weight}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">高</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="height" readonly
						value="${enter.height}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体积</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="volume" readonly
						value="${enter.volume}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">重量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="client_weight" readonly
						value="${enter.client_weight}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">订单包数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="packNum" readonly
						value="${enter.packNum}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">已生产产品标签数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="" readonly
						value="？？？" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">目前生产产品标签数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="" readonly
						value="？？？" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">待生产产品标签数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="" readonly
						value="？？？" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否批件产品</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="instructions" readonly
						value="${enter.instructions==1?'是':'否'}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">已入库天数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="storageDay" readonly
						value="${enter.storageDay}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">最后入库日期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="finalEnterDate" readonly
						value="${enter.finalEnterDate}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">通用件编码</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="commonCode"
						name="enterstorageFormMap.commonCode" value="${enter.commonCode}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">每包件数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly id="orderPack"
						name="enterstorageFormMap.orderPack" value="${enter.orderPack}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">仓位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="warehouse"
						name="enterstorageFormMap.warehouse" value="${enter.warehouse}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">班别</label>
				<div class="col-sm-9">
					<select class="form-control" name="enterstorageFormMap.schedule">
						<option value="1" <c:if test="${enter.schedule eq 1}"> SELECTED</c:if>>甲班</option>
						<option value="2" <c:if test="${enter.schedule eq 2}"> SELECTED</c:if>>乙班</option>
					</select>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">单位</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="unit"
						name="enterstorageFormMap.unit" value="${enter.unit}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">配套件数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="setCount"
						name="enterstorageFormMap.setCount" value="${enter.setCount}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">数据差异原因分析</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="reason"
						name="enterstorageFormMap.reason" value="${enter.reason}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">责任部门（人）</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="dutyDepartment"
						name="enterstorageFormMap.dutyDepartment" value="${enter.dutyDepartment}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">入库盘点数</label>
				<div class="col-sm-9">
					<input type="number" min="0" class="form-control checkabh" id="enterReckon"
						name="enterstorageFormMap.enterReckon" value="${enter.enterReckon}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<input type="hidden" id="packTotal" name="enterstorageFormMap.packTotal" value="${enter.packTotal}" />
			<div class="form-group">
				<label class="col-sm-3 control-label">剩余包数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" readonly
						name="enterstorageFormMap.restCount" value="${enter.restCount}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">备注</label>
				<div class="col-sm-9">
					<input type="text" class="form-control checkabh" id="remark"
						name="enterstorageFormMap.remark" value="${enter.remark}" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> </section>
	</form>
	<script type="text/javascript">
		$(function() {
			$("#enterReckon").change(function() {
				var enterReckon = $("#enterReckon").val();
				var orderPack = $("#orderPack").val();
				$("#packTotal").val(enterReckon*orderPack);
			});
		});
	</script>
</body>
</html>